package com.ac.cv.client;

import com.google.gwt.user.client.ui.Label;

public class Log {

	private Label label;
	
	private static Log logger;
	
	public static Log getInstance(){
		if(logger == null){
			logger = new Log();
			logger.setLabel(new Label());
		}
		return logger;
	}
	
	public void log(String text){
		label.setText(label.getText() + "\n" + text);
	}

	public void setLabel(Label label) {
		this.label = label;
	}

	public Label getLabel() {
		return label;
	}
	
}
